<?php
/**
 * 订餐菜品分类model
 */
class RestaurantstyyGoodsCategoryModel extends BaseModel{
	protected $tableName='restaurantstyy_goods_category';
	protected  $_link = array(
 		'RestaurantInfo' => array(
 			'mapping_type' => BELONGS_TO,
 			'class_name' => 'RestaurantstyyInfo',
 			'foreign_key' => 'restaurant_id',
 			'mapping_fields' => 'restaurant_name',
 			'as_fields' => 'restaurant_name',
 		),
		'RestaurantWindow' => array(
 			'mapping_type' => BELONGS_TO,
 			'class_name' => 'RestauranstyytWindow',
 			'foreign_key' => 'window_id',
 			'mapping_fields' => 'window_name',
 			'as_fields' => 'window_name',
 		),
	);
}